package b.p.b;

import android.graphics.Rect;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView.m;

/* compiled from: OrientationHelper */
public abstract class z {
    public final m a;
    public int b = Integer.MIN_VALUE;
    public final Rect c = new Rect();

    public z(m mVar, x xVar) {
        this.a = mVar;
    }

    public static z a(m mVar, int i) {
        if (i == 0) {
            return new x(mVar);
        }
        if (i == 1) {
            return new y(mVar);
        }
        throw new IllegalArgumentException("invalid orientation");
    }

    public abstract int b(View view);

    public abstract int c(View view);

    public abstract int d(View view);

    public abstract int e(View view);

    public abstract int f();

    public abstract int g();

    public abstract int h();

    public abstract int i();

    public abstract int j();

    public abstract int k();

    public abstract int l();

    public int m() {
        return Integer.MIN_VALUE == this.b ? 0 : l() - this.b;
    }

    public abstract int n(View view);

    public abstract int o(View view);

    public abstract void p(int i);
}
